package sctu.edu.java.year2016.team01.lishuai.day20160601.chapter9_1;

/**
 * Created by 李大帅 on 2016/6/1.
 */
public class Work {

    private int sum=0;
    class work
    {
        public void sum(int i)
        {
            for(int j=1;j<i;j++)
            {
                sum+=i;
            }

        }
    }
    public void show()
    {
        System.out.println("从1到任意数的和为："+sum);
    }

}
